package com.zj.request;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias(value = "soap:Envelope")
public class BankRequest <Header,Body>{

	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:soap")
	private String soap = "http://schemas.xmlsoap.org/soap/envelope/";
	
	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:soapenc")
	private String soapenc = "http://schemas.xmlsoap.org/soap/encoding/";

	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:x")
	private String x = "http://www.w3.org/2001/XMLSchema";
	
	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:d")
	private String d = "http://esb.spdbbiz.com/metadata";
	
	
	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:s")
	private String s ;
	
	public String getSoap() {
		return soap;
	}

	public void setSoap(String soap) {
		this.soap = soap;
	}

	public String getSoapenc() {
		return soapenc;
	}

	public void setSoapenc(String soapenc) {
		this.soapenc = soapenc;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getD() {
		return d;
	}

	public void setD(String d) {
		this.d = d;
	}

	public String getS() {
		return s;
	}

	public void setS(String s) {
		this.s = s;
	}

	public Header getHeader() {
		return header;
	}

	public void setHeader(Header header) {
		this.header = header;
	}

	public Body getBody() {
		return body;
	}

	public void setBody(Body body) {
		this.body = body;
	}

	@XStreamAlias(value = "Header")
	private Header header;
	
	@XStreamAlias(value = "Body")
	private Body body;

	public BankRequest(String soap, String soapenc, String x, String d, String s, Header header, Body body) {
		super();
		this.soap = soap;
		this.soapenc = soapenc;
		this.x = x;
		this.d = d;
		this.s = s;
		this.header = header;
		this.body = body;
	}

	public BankRequest() {
		super();
	}

	@Override
	public String toString() {
		return "BankRequest [soap=" + soap + ", soapenc=" + soapenc + ", x=" + x + ", d=" + d + ", s=" + s + ", header="
				+ header + ", body=" + body + "]";
	}

}
